package io.noties.markwon.base.editor

import android.text.TextPaint
import android.text.style.CharacterStyle
import com.gitee.wsl.ext.base.setAlpha

internal class PunctuationSpan : CharacterStyle() {
    override fun updateDrawState(tp: TextPaint) {
        tp.color = tp.color.setAlpha(DEF_PUNCTUATION_ALPHA)
    }

    companion object {
        private const val DEF_PUNCTUATION_ALPHA = 75
    }
}